{template Public:Page:header}

<div class="container-fluid" style="margin-top:15px;height:390px; padding:0px;">

          {if $slidearray}
                <div id="HomeCarousel" class="carousel slide homecarousel">
                  <ol class="carousel-indicators">
                  {foreach $slidearray $key=>$value}
                    <li data-target="#HomeCarousel" data-slide-to="{echo $key}"{if $key==0} class="active"{/if}></li>
                  {/foreach}
                  </ol>
                  <div class="carousel-inner">
                 {foreach $slidearray $key=>$value}
                    <div class="{if $key==0}active {/if}item" style="text-align:center"><a href="{echo $value['link']}" target="_blank"><img src="/{echo $value['image']}" style="height:360px;"/></a></div>
                 {/foreach}
                  </div>
                </div>
           {/if}
 
</div>

<div class="container">
  <div class="row">
  
	<div class="col-lg-9">
      <div class="row">
			<div class="tabbable">
                <ul class="nav nav-tabs tabs-flat nav-justified">
                    <li class="active">
                        <a href="#hometoptask" data-toggle="tab">
                           推荐任务
                        </a>
                    </li>
                     <li>
                        <a href="#homehottask" data-toggle="tab">
                            热门任务
                        </a>
                    </li>
                    <li>
                        <a href="#homenewtask" data-toggle="tab">
                            最新任务
                        </a>
                    </li>
                </ul>
                <div class="tab-content tabs-flat">
                    <div class="tab-pane in active" id="hometoptask">
                        <div class="home_task_list">
                        	<ul>
                            {if $toptask}
                    			{foreach $toptask $task}
                            <li>
                       
                            	<p><span class="home_task_subject"><a href="/task/{echo $task['id']}" target="_blank" data-original-title="￥{echo number_format($task['money']/100,2)} {echo $task['subject']}" data-toggle="tooltip"><span class="color_f60">￥{echo number_format($task['money']/100,2)}</span> {echo $task['subject']}</a></span>
                                <span class="text-muted home_task_time">{echo $task['enddate']} 截止 &nbsp; 需要 {echo $task['task_number']} 稿,已投 {echo $task['draft_number']} 稿</span>
                                </p>
                            </li>
                            	{/foreach}
                            {/if}
                            </ul>
                        </div>
                    </div>
                    
                     <div class="tab-pane" id="homehottask">
                         <div class="home_task_list">
                                <ul>
                                {if $hottask}
                                        {foreach $hottask $task}
                                    <li>
                                        <p><span class="home_task_subject"><a href="/task/{echo $task['id']}" target="_blank" data-original-title="￥{echo number_format($task['money']/100,2)} {echo $task['subject']}" data-toggle="tooltip"><span class="color_f60">￥{echo number_format($task['money']/100,2)}</span> {echo $task['subject']}</a></span>
                                        <span class="text-muted home_task_time">{echo $task['enddate']} 截止 &nbsp; 需要 {echo $task['task_number']} 稿,已投 {echo $task['draft_number']} 稿</span>
                                        </p>
                                    </li>
                                    {/foreach}
                                {/if}
                               </ul>
                        </div>
                    </div>

                    <div class="tab-pane" id="homenewtask">
                  	  <div class="home_task_list">
                        	<ul>
                            {if $newtask}
                                    {foreach $newtask $task}
                                <li>
                                    <p><span class="home_task_subject"><a href="/task/{echo $task['id']}" target="_blank" data-original-title="￥{echo number_format($task['money']/100,2)} {echo $task['subject']}" data-toggle="tooltip"><span class="color_f60">￥{echo number_format($task['money']/100,2)}</span> {echo $task['subject']}</a></span>
                                    <span class="home_task_time">{echo $task['enddate']} 截止 &nbsp; 需要 {echo $task['task_number']} 稿,已投 {echo $task['draft_number']} 稿</span>
                                    </p>
                                </li>
                                {/foreach}
                            {/if}
                           </ul>
                        </div>
                    </div>
                </div>
            </div>
      </div>
    </div>
    
    <div class="col-lg-3 well-col-pl-30">
      <div class="row">
      
      <div class="tabbable home_rule">
            <ul id="myTab10" class="nav nav-tabs">
                <li class="active">
                    <a href="#homerule1" data-toggle="tab">
                        公告
                    </a>
                </li>
				<li>
                    <a href="#homerule2" data-toggle="tab">
                        提现
                    </a>
                </li>
                <li>
                    <a href="#homerule3" data-toggle="tab">
                        保障
                    </a>
                </li>
                <li>
                    <a href="#homerule4" data-toggle="tab">
                        规则
                    </a>
                </li>

            </ul>

            <div class="tab-content home_tab-content">
                <div class="tab-pane active" id="homerule1">
                  <div class="home_rule_list">
                  	<ul>
                    {if $articlearray}
                    	{foreach $articlearray $value}
                    		<li><a href="/news/{echo $value['id']}" target="_blank" data-original-title="{echo $value['subject']}" data-toggle="tooltip">{echo $value['subject']}</a></li>
                        {/foreach}
                    {/if} 
                    </ul>
                  </div>
                </div>

				
                <div class="tab-pane" id="homerule2">
                  <div class="home_rule_list">
                  	<ul>
                    <li>暂无数据</li>
                    </ul>
                  </div>
                </div>
                
                <div class="tab-pane" id="homerule3">
                  <div class="home_rule_list">
                  	<ul>
                    <li>暂无数据</li>
                    </ul>
                  </div>
                </div>
                
                <div class="tab-pane" id="homerule4">
                  <div class="home_rule_list">
                  	<ul>
                    <li>暂无数据</li>
                    </ul>
                  </div>
                </div>
                
            </div>
        </div>
                                        
                                        
      <div class="well" style="text-align:center; height:212px;">
       	<h1>有需求?</h1>
        <p>无投稿退全款</p>
		<h4>专业威客帮你解决问题</h4>
        
        <p style="padding-top:10px;"><a class="btn btn-primary btn-lg" href="/task/publish/index" style="width:100%; padding:12px; font-size:18px">立刻发布任务</a></p>
       </div>
    </div>
  </div>
</div>
</div>

<div class="container">
  <div class="row">
  
	<div class="col-lg-12">
      <div class="row">
        <div class="well">
        	<h4>TA们在做什么？</h4>
               <div id="EventCarousel" class="carousel slide">
                  <div class="carousel-inner">
                  
                  {if $feedarray}
                  <div class="active item home_feed">
                  <ul>
                      {foreach $feedarray $key=>$value}
                      {if $key<=8}
                        <li style="height:30px;overflow:hidden;"><strong>{echo $value['username']}</strong> {echo $value['content']}</li>
                      {/if}  
                     {/foreach}
                 </ul>
                 </div>
            	 {/if}
                 
                  {if $feedarray}
                  <div class="item home_feed">
                  <ul>
                      {foreach $feedarray $key=>$value}
                      {if $key>8}
                        <li style="height:30px;overflow:hidden;"><strong>{echo $value['username']}</strong> {echo $value['content']}</li>
                      {/if}  
                     {/foreach}
                 </ul>
                 </div>
            	 {/if}
                  </div>
                </div>  
                
                
                <hr />
                
                <h4>任务流程</h4>
       		 <div data-target="#WiredWizardsteps" class="wizard wizard-wired" id="WiredWizard" style="border-bottom:0px;">
                    <ul class="steps">
                        <li class="active" data-target="#wiredstep1"><span class="step">1</span><span class="title">雇主发布任务并托管赏金</span><span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep2" class=""><span class="step">2</span><span class="title">威客做任务投稿</span> <span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep3" class=""><span class="step">3</span><span class="title">雇主选择满意稿件设置中标</span> <span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep4" class=""><span class="step">4</span><span class="title">威客交接雇主确认支付</span> <span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep5" class=""><span class="step">5</span><span class="title">双方评价</span> <span class="chevron"></span></li>
                    </ul>

                </div>     
            <!--     
            <h3>招标流程</h3>
       		 <div data-target="#WiredWizardsteps" class="wizard wizard-wired" id="WiredWizard">
                    <ul class="steps">
                        <li class="active" data-target="#wiredstep1"><span class="step">1</span><span class="title">雇主发布任务无托管赏金</span><span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep2" class=""><span class="step">2</span><span class="title">威客报价格投标</span> <span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep3" class=""><span class="step">3</span><span class="title">雇主选投标中标并托管赏金</span> <span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep4" class=""><span class="step">4</span><span class="title">威客交接雇主确认支付</span> <span class="chevron"></span></li>
                        <li class="active" data-target="#wiredstep5" class=""><span class="step">5</span><span class="title">双方评价</span> <span class="chevron"></span></li>
                    </ul>

                </div>      
            -->                        
        </div>
      </div>
    </div>
    
</div>
</div>



{if $categoryarray}
{foreach $categoryarray $ckey=>$category}
	<div class="container"><div class="row">
    {if $ckey==0}
    {ad 2}
    {elseif $ckey==1}
    {ad 3}
	{elseif $ckey==2}
    {ad 4}
	{elseif $ckey==3}
    {ad 5} 
	{elseif $ckey==4}
    {ad 6}   
	{elseif $ckey==5}
    {ad 7}  
	{elseif $ckey==6}
    {ad 8}   
	{elseif $ckey==7}
    {ad 9}          
    {/if}
 
    </div></div>
	<br />
    <div class="container">
      <div class="row">
                <div class="well" style="padding:12px;">
                    <div class="row">
                        <div class="col-lg-10"><h3>F{echo $ckey+1} {echo $category['name']}</h3></div>
                
                        <div class="col-lg-2 text-right">
                         <a href="/rencai/{echo $category['route']}">
                                更多{echo $category['name']}
                            </a>
                         </div>   
       				</div>
    
                    <div class="row">
                        <div class="col-lg-4">
                        {if $category['logo']}<img name="" src="/{echo $category['logo']}" width="376" />{/if}
                        <p></p>
                        <h4>服务商专场</h4>
                        {foreach $category['subclass'] $subclass}
                        	{if $subclass['service']}
                                <a href="/rencai/{echo $subclass['route']}">
                                   {echo $subclass['name']}
                                </a>
                            {/if}
                        {/foreach}
                        <hr />
                       <h4>任务专场</h4>
                        {foreach $category['subclass'] $subclass}
                        	{if $subclass['task']}
                                <a href="/task/{echo $subclass['route']}">
                                   {echo $subclass['name']}
                                </a>
                            {/if}
                        {/foreach}
                         <hr />
                       <h4>服务专场</h4>
                        {foreach $category['subclass'] $subclass}
                        	{if $subclass['service']}
                                <a href="/fuwu/{echo $subclass['route']}">
                                   {echo $subclass['name']}
                                </a>
                            {/if}
                        {/foreach}
                        
                        <div class="row"><br /><div class="col-lg-12">
                            {if $ckey==0}
                            {ad 10}
                            {elseif $ckey==1}
                            {ad 11}
                            {elseif $ckey==2}
                            {ad 12}
                            {elseif $ckey==3}
                            {ad 13} 
                            {elseif $ckey==4}
                            {ad 14}   
                            {elseif $ckey==5}
                            {ad 15}  
                            {elseif $ckey==6}
                            {ad 16}   
                            {elseif $ckey==7}
                            {ad 17}          
                            {/if}
                        </div></div>
                        </div>
                        <div class="col-lg-8">
                        
                          <div class="home_list_user">
                          <ul>
                          {if $category['user']}
                          {foreach $category['user'] $user}
                            <li>
                                  <a href="/shop/{echo $user['uid']}" target="_blank">{echo GetAvatarSimple($user['uid'],200)}</a>
                                  {php}$newdata=unserialize($user['newdata']);{/php}
             
                                  <div class="home_user_caption">
                                    <h4><a href="/shop/{echo $user['uid']}" target="_blank">{echo $user['shopname']}</a></h4>
                                    <p>{if $user['level']}<img src="/assets/img/level/level_{echo $user['level']}.png" title="等级值{echo $user['ability_level']}"/>{/if} {if $user['isvip']}<img src="/assets/img/vip.png" title="VIP"/>{/if}
                                    <br />
                                    {if $user['seller_level']}<img src="/assets/img/seller_credit_level/level_{echo $user['seller_level']}.gif"/>{/if} 好评率：<span class="color_f60">{echo $user['seller_haopinglu']/100}%</span>
                                    </p>
                                     {if $newdata}
                                     {foreach $newdata $key=>$data}
                                     	{if $key<2}
                                    	<p class="home_user_fuwu"><a href="/shop/fuwu/{echo $data['id']}" target="_blank"><span class="color_f60">￥{echo $data['money']}</span> {echo $data['subject']}</a></p>
                                        {/if}
                                     {/foreach}
                                     {/if} 
                                    <p class="home_user_shop"><a role="button" class="btn btn-primary btn-sm" href="javascript:void(0);" onclick="Employ({echo $user['uid']});">雇用TA</a> <a role="button" class="btn btn-default btn-sm" href="/shop/{echo $user['uid']}">店铺</a></p>
                                  </div> 
                            </li>
                            {/foreach}
                          {/if}
                          </ul>
                          </div>
                
                        </div>
                        
                    </div>  

                </div>
    
        </div>
    </div> 
{/foreach}    
{/if}

<div class="container"><div class="row">
<div class="home_cooperation">
<h3>合作伙伴</h3>
<ul>
<li><a href="http://www.phpapp.cn"><img src="/assets/img/link_logo.png" /></a></li>
</ul>
</div>
</div></div>
 
{template Shop:Fuwu:employ}
                            
<script>
$('.carousel').carousel();
</script>
{template Public:Page:footer}